﻿<UserControl
    x:Class="FU.Capstones.IMS.Web.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Navigation="clr-namespace:Navigation.Silverlight;assembly=Navigation.Silverlight"
    xmlns:Controls="clr-namespace:FU.Capstones.IMS.Web.Silverlight.Controls">
    <ScrollViewer 
        Visibility="{Binding Path=ContentVisibility, Mode=OneWay}"
        HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
        <Grid x:Name="LayoutRoot" Style="{StaticResource MainPageGridStyle}">
            <Grid.ColumnDefinitions> 
            	<ColumnDefinition Width="*"/>
            	<ColumnDefinition Width="250"/>
            	<ColumnDefinition Width="850"/>
            	<ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
        
            <Grid.RowDefinitions>
            	<RowDefinition Height="100"/>
            	<RowDefinition MinHeight="600"/>
            	<RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>


            <!--Logout-->
            <Image Source="/Images/Logo.png" Stretch="Fill" HorizontalAlignment="Left" Grid.Column="1" Grid.ColumnSpan="2" Width="255" />
            <!--<Border
                Grid.Row="0" Grid.Column="2">
                <Border.Background>
                    <ImageBrush
                        ImageSource="Image1.png" Stretch="Fill"/>
                </Border.Background>
            </Border>-->      

            <Grid 
                Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"            
                Width="Auto" Height="100"
            >
                <Grid.ColumnDefinitions>
                	<ColumnDefinition Width="40"/>
                	<ColumnDefinition Width="*"/>
                	<ColumnDefinition Width="*"/>
                	<ColumnDefinition Width="*"/>
                	<ColumnDefinition Width="*"/>
                	<ColumnDefinition Width="40"/>
                </Grid.ColumnDefinitions>                
                <Grid.RowDefinitions>
                	<RowDefinition Height="Auto" />
                	<RowDefinition Height="Auto" />
                	<RowDefinition Height="Auto" />
                	<RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="10" />
                </Grid.RowDefinitions>     
                
                <!--Logout-->
                <Controls:LogOutControl
                    Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" 
                    HorizontalAlignment="Right" VerticalAlignment="Top"/>
                
                <TextBlock
                	Grid.Column="2" Grid.Row="0"
                	Grid.ColumnSpan="2" Grid.RowSpan="3"
                	Text="Hệ Thống Quản Lý Kho"
                	Style="{StaticResource TextBockBanner1Style}" 
                />
                <TextBlock 
                	Grid.Column="3" Grid.Row="3"
                	Grid.ColumnSpan="2"
                	Text="Công ty Cổ phần điện tử Lạng Sơn"
                	Style="{StaticResource TextBockBanner2Style}" Margin="0,0,71,0"
                    />
            </Grid>
            
        	<Border 
        		x:Name="bdComposition"
        		Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
        		BorderThickness="4"
        		BorderBrush="#BDBDBD" RenderTransformOrigin="0.5,0.5"
				>             		
        		<Grid>
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="250"/>
        				<ColumnDefinition Width="850"/>
        			</Grid.ColumnDefinitions>

        			<Controls:MenuControl Grid.Row="0" Grid.Column="0" Margin="0"/>

        			<Navigation:SingleItemFrame 
        				x:Name="sifMaster"
        				Grid.Row="0" Grid.Column="1"
        				DefaultPage="" HorizontalAlignment="Left" Width="850"
                    />
        		</Grid>
        	</Border>		 
        </Grid>
    </ScrollViewer>
</UserControl>
